package com.qmhl.toolposition.api;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class CacheInterceptor implements Interceptor {
    @Override
    public Response intercept(Chain chain) throws IOException {
        Request request = chain.request();
        
        // 在这里检查是否有缓存可用，如果有，返回缓存的响应
        
        Response response = chain.proceed(request);

        
        // 在这里将响应缓存起来
        
        return response;
    }
}

